package com.five.monkey.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 狻猊
 * @date 2021/8/9 下午2:30
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class TestVo implements Serializable {

    private String name;

    private int age;

    private float score;

    public TestVo changeName(String prefix, String suffix) {
        this.name = prefix + this.name + suffix;
        return this;
    }

    public TestVo changeAge(int addAge) {
        this.age += addAge;
        return this;
    }

    public TestVo changeScore(float addScore) {
        this.score += addScore;
        return this;
    }
}
